Skip to content

docs(readme): add light/dark screenshot pair via picture element#38

Merged
u8array merged 1 commit into
mainfrom
docs/readme-screenshots
May 9, 2026
Merged

docs(readme): add light/dark screenshot pair via picture element#38
u8array merged 1 commit into
mainfrom
docs/readme-screenshots

Conversation

@u8array
Copy link
Copy Markdown
Owner

@u8array u8array commented May 9, 2026

Replaces the TODO placeholder with a block: GitHub renders the dark-theme PNG to readers in dark mode, the light-theme PNG to the rest, with the light variant as the no-source-match fallback. Same demo label (Zebra Print Lab + Code 128 + SKU/LOT footer) shown in both themes with the barcode selected so the Properties panel displays useful state.

Replaces the TODO placeholder with a <picture> block: GitHub renders
the dark-theme PNG to readers in dark mode, the light-theme PNG to
the rest, with the light variant as the no-source-match fallback.
Same demo label (Zebra Print Lab + Code 128 + SKU/LOT footer) shown
in both themes with the barcode selected so the Properties panel
displays useful state.
@u8array u8array merged commit ae79d01 into main May 9, 2026
2 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the README.md by replacing a placeholder with a picture element to display screenshots for both dark and light modes. The review feedback suggests optimizing the HTML by removing a redundant source tag and improving the accessibility of the image through more descriptive alt text.

Comment thread README.md
Comment on lines +17 to +21
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/screenshot-dark.png">
<source media="(prefers-color-scheme: light)" srcset="docs/screenshot-light.png">
<img alt="Zebra Print Lab — designer with a sample label" src="docs/screenshot-light.png">
</picture>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The <picture> block can be optimized by removing the redundant light-scheme <source> tag, as the <img> element already serves as the default fallback for the light theme. Additionally, the alt text should be more descriptive to improve accessibility, incorporating details about the interface and the sample label shown to provide better context for screen reader users.

Improvement opportunities:

  • Redundancy: The <source media="(prefers-color-scheme: light)" ...> tag is unnecessary when the <img> tag points to the same file.
  • Accessibility: A more descriptive alt attribute helps users understand the visual context of the application (e.g., mentioning the designer interface and the barcode).
Suggested change
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/screenshot-dark.png">
<source media="(prefers-color-scheme: light)" srcset="docs/screenshot-light.png">
<img alt="Zebra Print Lab — designer with a sample label" src="docs/screenshot-light.png">
</picture>
<picture>
<source media="(prefers-color-scheme: dark)" srcset="docs/screenshot-dark.png">
<img alt="Zebra Print Lab designer interface showing a sample label with a Code 128 barcode and the properties panel" src="docs/screenshot-light.png">
</picture>

@u8array u8array deleted the docs/readme-screenshots branch May 10, 2026 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant